package com.system.mapper;

import com.order.hit.crossover.platform.common.bean.Store;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Lei
 * @version 0.1
 * @date 2020/9/13
 */
public interface StoreMapper {

    @Select("select * from store")
    public List<Store> getAllStore();

    @Select("select * from store where storeName=#{storeName} and password=#{password}")
    public Store login(@Param("storeName")String storeName, @Param("password")String password);

    @Select("select * from store where storeId=#{storeId}")
    public Store selectByid(@Param("storeId")String storeId);
}
